package com.jvtd.eyl.widget;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.util.AttributeSet;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.jvtd.eyl.bean.binding.ClassBean;
import com.jvtd.eyl.constants.App;
import com.jvtd.eyl.widget.adapter.SecondaryClassAdapter;
import com.jvtd.eyl.widget.adapter.TxtAdapter;
import com.jvtd.widget.recyclerView.JvtdRecyclerView;

/**
 * 二级分类列表
 *
 * 作者:chenlei
 * 时间:2018/11/13 4:37 PM
 */
public class TxtRecyclerView extends JvtdRecyclerView<String> {
    public TxtRecyclerView(@NonNull Context context) {
        super(context);
    }

    public TxtRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public TxtRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public BaseQuickAdapter initAdapter() {
        TxtAdapter adapter = new TxtAdapter();
//        adapter.openLoadAnimation();
        return adapter;
    }

    @Override
    public LayoutManager initLayoutManager() {
        return new LinearLayoutManager(mContext);
    }

    @Override
    public boolean isFirst() {
        return false;
    }

    @Override
    public int getLoadNum() {
        return 0;
    }

    @Override
    public double getFlingRatio() {
        return App.FLING_RATIO;
    }
}
